# -*-codeing = utf-8 -*-
# @Tine:2024/9/18 
# @Author:计科201121尚益帆
# File：1-2列表.py
# @Software:PyCharm
namelist=["小王","小张","小李"]
print(namelist[0])
print(namelist[1])
print(namelist[2])

for name in namelist:
    print(name)

#生成一个元素为 1~100 的列表
my_list = [i for i in range(1, 101)]
print(my_list)


my_list = [1, "hello", 3.14, [4, 5, 6]]